import axios from "~/axios";

export function getIntegral(page) {
  return axios.get("/integral?page=" + page);
}

export function createIntegral(data) {
  return axios.post("/integral", data);
}

export function updateIntegral(id, data) {
  return axios.put(`/integral/${id}`, data);
}

export function deleteIntegral(id) {
  return axios.delete("/integral/" + id);
}

export function getidIntegral(id) {
  return axios.get(`/integral/${id}`);
}
